package lab02.test06;

/**
 * Created by V555 on 2017/10/15.
 */
public class Ladder {
    //属性：上底、下底、高、面积
    double upperBase;
    double bottomBse;
    double height;
    double area;
    //返回面积
    double area(){
        area=(upperBase+bottomBse)*height/2;
        return area;
    }
}
